// 封装新闻相关的接口

import axios from "@/utils/request";

// 获取新闻列表接口
export function getNewsList(params) {
    return axios({
        url: "/post",
        method: "get",
        params,
        headers: {
            Authorization: localStorage.getItem("token")
        }
    })
}